Ungroup

Entity-Related Operation Statement

Syntax samples

UNGROUP {LIFO}

UNGROUP

UNGROUP LIFO

Description

Separates entities that were grouped with the GROUP statement. Each of the resulting entities searches ahead in the process list and then from the beginning of the list until a process is found that has been defined for that entity type at the current location. The first entity processed from the group takes any resources the group owns. If a grouped entity has members that are also grouped entities, only the top level group is ungrouped with an UNGROUP statement. An additional UNGROUP will ungroup any member groups.

Valid In

The operation column of process edit tables only. You may not use UNGROUP on conveyors nor at the end of a queue. UNGROUP may not be used in combination with COMBINE, CREATE, UNGROUP, LOAD, UNLOAD, SPLIT AS or other UNGROUP statements in a processing logic. It may follow a GROUP statement no more than once in the same processing logic to allow batch processing.

Please note

If you are trying to ungroup an entity that has never been grouped, ProModel ignores the UNGROUP statement.

Components

LIFO

Last In, First Out. Starts the ungrouped entities processing from last to first, rather than from first to last. If this option is not specified, the ungrouped entities will be processed FIFO, or First In, First Out.

Explicit Entity Actions

With an UNGROUP, ProModel dissolves the temporary shell and divides costs among the ungrouped entities (ungrouped entities may include smaller clusters of grouped entities).

Example

The example below is the continuation of the GROUP statement example where EntA, EntB and EntC were grouped to form Grp_A. Now the entities are ungrouped with all of their original properties. (See the GROUP statement example.)

Process Table

Entity

Location

Operation (min)

Grp_A

Loc3

UNGROUP

EntA

Loc3

USE Res1 FOR 2 min

EntB

Loc3

USE Res1 FOR 2 min

EntC

Loc3

USE Res1 FOR 2 min

Routing Table

Blk

Output

Destination

Rule

Move Logic

 

 

 

 

 

1

EntA

Loc4

FIRST 1

MOVE FOR 2

1

EntB

Loc5

FIRST 1

MOVE FOR 2

1

EntC

Loc6

FIRST 1

MOVE FOR 2

See Also

GROUP, LOAD, JOIN, COMBINE, and SPLIT AS. See Attributes for more information.